package com.teacold.customdemo.chapter_thirteen;

import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;

public class MyGestureListener  implements GestureDetector.OnGestureListener,GestureDetector.OnDoubleTapListener {

    @Override
    public boolean onDown(MotionEvent e) {
        Log.e("GGGGGGG","onDown");
        return false;
    }

    @Override
    public void onShowPress(MotionEvent e) {
        Log.e("GGGGGGG","onShowPress");
    }

    @Override
    public boolean onSingleTapUp(MotionEvent e) {
        Log.e("GGGGGGG","onSingleTapUp");
        return false;
    }

    @Override
    public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
        Log.e("GGGGGGG","onScroll");
        return false;
    }

    @Override
    public void onLongPress(MotionEvent e) {
        Log.e("GGGGGGG","onLongPress");
    }

    @Override
    public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
        Log.e("GGGGGGG","onFling");
        return false;
    }

    @Override
    public boolean onSingleTapConfirmed(MotionEvent e) {
        Log.e("GGGGGGG","onSingleTapConfirmed");
        return false;
    }

    @Override
    public boolean onDoubleTap(MotionEvent e) {
        Log.e("GGGGGGG","onDoubleTap");
        return false;
    }

    @Override
    public boolean onDoubleTapEvent(MotionEvent e) {
        Log.e("GGGGGGG","onDoubleTapEvent");
        return false;
    }
}
